package com.magic.zhixin.repository;

import com.magic.zhixin.entity.UserQuestionAnswer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserQuestionAnswerRepository extends JpaRepository<UserQuestionAnswer,Long>{
    List<UserQuestionAnswer> findByUserId(Long userId);

    List<UserQuestionAnswer> findByUserQuestionId(Long id);

    UserQuestionAnswer findByUserIdAndUserQuestionId(Long id, Long userQuestionId);

    UserQuestionAnswer findByIdIs(Long userQuestionAnswerId);
}
